/**
 * 
 */
package xiaojian.toolkit.transport.receiver;

import org.apache.mina.core.session.IoSession;

import xiaojian.toolkit.transport.Receiver;


/**
 * @author hp
 *
 */
public class ResponseTextReceiver implements Receiver {

	private	String	text;
	
	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * @param text the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}

	/* (non-Javadoc)
	 * @see com.skymobi.transport.Receiver#messageReceived(org.apache.mina.core.session.IoSession, java.lang.Object)
	 */
	public void messageReceived(IoSession session, Object msg) {
		session.write(text);
	}

}
